package com.hm.shopping.domain;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.shopping.auto.su.BaseDomain;
import com.hm.shopping.auto.su.R;
import com.hm.shopping.def.OrderStateEnum;
import com.hm.shopping.vo.GoodsIntroductionVo;
import com.hm.shopping.vo.su.UserAddressVo;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 2018年2月26日 下午3:14:34
 * @version 1.0
 * @describe 
 */
@Setter
@Getter
@Document(collection = R.Database.prefix + "BUY_GOODS_SNAPSHOT_DETAIL")
public class GoodsIntroductionSnapshotDetailDomain extends BaseDomain{

	private static final long serialVersionUID = 8741776505793067329L;

	/**
	 * 子订单号
	 */
	@Field(value = "order_id")
	private String orderId;

	/**
	 * 商品购买数量
	 */
	private int quantity;

	/**
	 * 购买用户
	 */
	@Field(value = "buyer_id")
	private String buyerId;

	/**
	 * 订单状态
	 */
	@Field(value = "order_state")
	private OrderStateEnum orderState;

	/**
	 * 支付金额
	 */
	@Field(value = "pay_amount")
	private long payAmount;

	/**
	 * 收货地址
	 */
	@Field(value = "buyer_address")
	private UserAddressVo buyerAddress;
	
	/**
	 * 购买备注
	 */
	@Field(value = "buyer_message")
	private String buyerMessage;
	
	/**
	 * 商铺ID
	 */
	@Field(value = "shops_id")
	private String shopsId;
	
	/**
	 * 商品详情
	 */
	@Field(value = "goods_introduction")
	private GoodsIntroductionVo goodsIntroductionVo;
}
